import request from '@/utils/request'

// 查询签到积分配置列表
export function listCheckIn(query) {
  return request({
    url: '/business/checkIn/list',
    method: 'get',
    params: query
  })
}

// 查询签到积分配置详细
export function getCheckIn(id) {
  return request({
    url: '/business/checkIn/' + id,
    method: 'get'
  })
}

// 新增签到积分配置
export function addCheckIn(data) {
  return request({
    url: '/business/checkIn',
    method: 'post',
    data: data
  })
}

// 修改签到积分配置
export function updateCheckIn(data) {
  return request({
    url: '/business/checkIn',
    method: 'put',
    data: data
  })
}

// 删除签到积分配置
export function delCheckIn(id) {
  return request({
    url: '/business/checkIn/' + id,
    method: 'delete'
  })
}
